package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamPackageMapper;
import com.ruoyi.system.domain.ExamPackage;
import com.ruoyi.system.service.IExamPackageService;

/**
 * 套餐类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-09
 */
@Service
public class ExamPackageServiceImpl implements IExamPackageService 
{
    @Autowired
    private ExamPackageMapper examPackageMapper;

    /**
     * 查询套餐类型
     * 
     * @param id 套餐类型主键
     * @return 套餐类型
     */
    @Override
    public ExamPackage selectExamPackageById(Integer id)
    {
        return examPackageMapper.selectExamPackageById(id);
    }

    /**
     * 查询套餐类型列表
     * 
     * @param examPackage 套餐类型
     * @return 套餐类型
     */
    @Override
    public List<ExamPackage> selectExamPackageList(ExamPackage examPackage)
    {
        return examPackageMapper.selectExamPackageList(examPackage);
    }

    /**
     * 新增套餐类型
     * 
     * @param examPackage 套餐类型
     * @return 结果
     */
    @Override
    public int insertExamPackage(ExamPackage examPackage)
    {
        return examPackageMapper.insertExamPackage(examPackage);
    }

    /**
     * 修改套餐类型
     * 
     * @param examPackage 套餐类型
     * @return 结果
     */
    @Override
    public int updateExamPackage(ExamPackage examPackage)
    {
        return examPackageMapper.updateExamPackage(examPackage);
    }

    /**
     * 批量删除套餐类型
     * 
     * @param ids 需要删除的套餐类型主键
     * @return 结果
     */
    @Override
    public int deleteExamPackageByIds(Integer[] ids)
    {
        return examPackageMapper.deleteExamPackageByIds(ids);
    }

    /**
     * 删除套餐类型信息
     * 
     * @param id 套餐类型主键
     * @return 结果
     */
    @Override
    public int deleteExamPackageById(Integer id)
    {
        return examPackageMapper.deleteExamPackageById(id);
    }

    @Override
    public List<String> getPackageName(Integer id) {
        return examPackageMapper.getPackageName(id);
    }

    @Override
    public List<ExamPackage> getExamPackageName() {
        return examPackageMapper.getExamPackageName();
    }

}
